package com.hellowx.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/7/20
 */
@RestController
@RefreshScope
public class TestController {

    @Value("${testName}")
    private String testName;

    @GetMapping("/test")
    public String test(){
        return testName+"lalalalala";
    }
}
